package edu.zqu.course.project.domain.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 分析题
 * </p>
 *
 * @author 郭泽鹏
 * @since 2020-06-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ExerciseAnalytical对象", description="课程模块：分析题")
public class ExerciseAnalytical implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "分析题答案id")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "学校id")
    private Long collegeId;

    @ApiModelProperty(value = "课程id")
    private Long courseId;

    @ApiModelProperty(value = "题目id")
    private Long exerciseId;

    @ApiModelProperty(value = "参考答案")
    private String answer;

    @ApiModelProperty(value = "评分标准")
    private String scoringStandard;

    @ApiModelProperty(value = "图片、视频、声音等资源/压缩包 所在的 系统内服务器")
    @TableField("IP")
    private Long ip;

    @ApiModelProperty(value = "图片、视频、声音等资源/压缩包 存放的 系统内路径")
    @TableField("URL")
    private String url;

    @ApiModelProperty(value = "系统外的资源/压缩包路径，如外网OJ的题号")
    private String wwwUrl;

    @ApiModelProperty(value = "创建时间")
      @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "操作者")
    private Long byWho;

    @ApiModelProperty(value = "本记录是否有效")
    @TableLogic
    private Boolean deleted;

    @ApiModelProperty(value = "历史版本")
    @Version
    private Long lastVersion;


}
